package com.zhaoliang;

/**
 * Good逻辑模型
 */
public class Good {

    /**
     * 自增id
     */
    private Integer gid;
    /**
     * 物品名称
     */
    private String gname;
    /**
     * 物品价格
     */
    private Integer price;
    /**
     * 物品数量
     */
    private Integer count;
    /**
     * 物品备注
     */
    private String remark;

    /**
     * 无参构造
     */
    public Good() {
    }

    /**
     * 所有参数构造
     * @param gid       自增id
     * @param gname     物品名称
     * @param price     物品价格
     * @param count     物品数量
     * @param remark    物品备注
     */
    public Good(Integer gid, String gname, Integer price, Integer count, String remark) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.count = count;
        this.remark = remark;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Good{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", remark='" + remark + '\'' +
                '}';
    }
}
